package com.eascs.ticket.user.controller;

import javax.inject.Inject;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eascs.site.view.ViewContext;
import com.eascs.ticket.common.controller.BaseMasterViewController;
import com.eascs.ticket.user.service.UserStructureService;

@Controller
public class UserStructureViewController extends BaseMasterViewController {

	@Inject
	private UserStructureService userStructureService;

	@RequestMapping(value = "/user/structure/view")
	public String viewUserStructure() {
		ViewContext.put("userStructureViews", this.userStructureService.getAllUserStructureViews());
		return "/user/structure/view";
	}
}
